﻿using RabbitMQ.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLM.ConfigurationCenter.EventBus.RabbitMQ {
    /// <summary>
    /// 
    /// </summary>
    public interface IRabbitMQConnection : IDisposable {
        /// <summary>
        /// 是否连接
        /// </summary>
        bool IsConnected { get; }
        /// <summary>
        /// 尝试连接
        /// </summary>
        /// <returns></returns>
        bool TryConnect();
        /// <summary>
        /// 创建模型
        /// </summary>
        /// <returns></returns>
        IModel CreateModel();
    }
   
}
